//
//  PublishController.m
//  Daddy
//
//  Created by lanou3g on 15/12/3.
//  Copyright © 2015年 wuchenru. All rights reserved.
//

#import "PublishController.h"
#import "HomePageController.h"

static HomePageController *home = nil;
@interface PublishController ()
@property (weak, nonatomic) IBOutlet UITextView *txt4Content;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *bar4Cancel;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *bar4Publish;

@end

@implementation PublishController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    self.tabBarController.tabBar.hidden = NO;
}

- (IBAction)action4publish:(UIBarButtonItem *)sender {
    
}
- (IBAction)action4Cancel:(UIBarButtonItem *)sender {
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    home = [sb instantiateViewControllerWithIdentifier:@"HomePageID"];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
